<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BPMeta
 *
 * @author i062261
 */
class BlynMeta extends BTreeItem {

    //put your code here

    public function getRepository($data = NULL, $reload = FALSE) {
        $repository = parent::getRepository($data, $reload);
        $repository->setModel($this->getModelClass());
        return $repository;
    }

    public function getModelClass($data = NULL) {
        return 'BMBlynMeta';
    }

    public function getRootNodeContext($context = NULL) {
        //$context = array('appId'=>  Blyn::app()->getActiveApp()->getId());
            //$context = array('appId' => Blyn::app()->getActiveApp()->getId());
        return parent::getRootNodeContext($context);
    }

}
